<div id="main">

		<div id="ctl00_ContentPlaceHolder1_projectInfo" class="main1">
			<h3>团队参赛方案</h3>
			<foreach name="projectInfo" item="pjinfo">
				<div class="list2">
					<ul style="width: 80px; float: left; margin-top: 10px;">
						<li style="text-align: center; background: url(__IMG__/Team/shade-projects.gif) repeat-x scroll 0% 50%; font-size: 2.5em;" id="pollnum">{$pjinfo.Poll}</li>
						<li style="text-align: center; margin: 2px auto;">
							<a  href="javascript:void(0)" onclick="addvote(this)" pid="{$pjinfo.Id}" tid="{$pjinfo.tid}" style="color:#075DB3;" id="addTeamVote">投上一票</a>
						</li>
						<li style="color: Red; text-align: center;">
							<switch name="pjinfo.Status" >
								<case value="1">初赛</case>
								<case value="2">复赛</case>
								<case value="3">分赛区决赛</case>
								<case value="4">全国总决赛</case>
							</switch>
						</li>
					</ul>
					<div style="float: left; width: 585px;">
						<h4 style="margin: 3px 5px 5px 15px;">
							<a href="__APP__/Public/Project/projectShow/projectid/{$pjinfo.Id}" style="color: #075DB3; font-size: 14px;">{$pjinfo.Name}</a>
						</h4>
						<p style="color: #383838;">{$pjinfo.Summarize}</p>
						<ul style="float: left; margin: 10px 0 2px 15px;">
							<li style="color: #777; float: left; margin-right: 10px;">{$pjinfo.SchoolName}
								<a style="color: #075DB3;" href="{:U('Team/Home/index')}/id/{$pjinfo.Id}"> {$pjinfo.teamname} </a> 团队的 
								<a href="{:U('Student/Home/index')}/id/{$pjinfo.Captain}" style="color: #075DB3;"> {$pjinfo.CaptainName} </a> 创建
							</li>
							<li style="background-image: url(__IMG__/Team/comment.gif); color: #777; margin-right: 10px;float: left; background-repeat: no-repeat; padding-left: 18px;">评论：{$pjinfo.CommentCount}</li>
							<li style="background: url(__IMG__/Team/icon_favourites.gif) no-repeat; margin-right: 10px;float: left; padding-left: 18px; color: #777;">阅读：{$pjinfo.ViewCount}</li>
						</ul>
					</div>
					<div class="clear"></div>
				</div>
			</foreach>
			<empty name="projectInfo">
				<div class="list2">
					暂无数据
				</div>
			</empty>
		</div>
	
		<div id="ctl00_ContentPlaceHolder1_problemInfo" class="main2">
			<h3> 选择的商业实践问题</h3>
			<foreach name="problemInfo" item="pbinfo">
				<div class="problem_item">
					<h4 class="problem_title">
						<a href="__APP__/Team/Trade/tradeshow/id/{$pbinfo.Id}">{$pbinfo.Title}</a>
					</h4>
					<div>
						<span class="small_title">描述：</span>{$pbinfo.Description}
					</div>
					<div class="problem_footer">
						<span class="small_title">企业名称：</span><a href="###">{$pbinfo.Name}</a>
						<img src="__IMG__/Team/ico_time.gif" class="left" alt="发布时间" />{$pbinfo.UpdateTiem}
						<span class="small_title left">浏览({$pbinfo.ViewCount})</span>
						<span class="small_title left"> 选择次数({$pbinfo.ChoiceCount})</span>
					</div>
				</div>
			</foreach>
			<empty name="problemInfo">
				<div class="problem_item">
					暂无数据
				</div>
			</empty>
		</div>
	
	<div class="main2">
		<h3> 参赛历程</h3>
		<div class="logload">
			
		</div>
		<div class="yahoo2" style="line-height: 30px; margin-bottom: 0px; padding-bottom: 0px;">
			<span id="ctl00_ContentPlaceHolder1_Pager1">
				<for start="1" end="$pagenum+1">
					<a href="__URL__/logload/id/{$info.Id}/page/{$i}" class='Current' act="loadtlog" >{$i}</a>
				</for>
				(第<b>{$page}</b>页/共<b>{$pagenum}</b>页)
			</span> 
		</div>
	</div>
	<script type="text/javascript">
		$('.logload').load('__URL__/logload/id/{$info.Id}/page/1');
		$(function(){
			$("a[act='loadtlog']").click(function(){
				var href=$(this).attr('href');
				//alert(href);
				$('.logload').load(href);
				return false;
			});
		});
			function addvote(ob){
				var aurl=$(this).attr('href');
				var pid=$(ob).attr('pid');
				var TeamId=$(ob).attr('tid');
				$.ajax({
					type: "POST",
					url: '__APP__/Team/Home/addTeamVote/TeamId/'+TeamId,
					data:{pid:pid},
					datatype:'json',
					success: function(data){
						//alert(data);
						var obj = eval('('+data+')');
						alert(obj.msg);
						if(obj.res){
							var num = parseInt($("#pollnum").html());
							$("#pollnum").html(num+1);
						}
					},
					error:function(){
						alert('数据加载失败');
					}
				});
				return false;
			}
	</script>
</div>
				